import _request from "../../common/_request";
import {Message} from "element-ui";

let lib_system = {

    module: 'register',

    // 登录
    register: function (account, password, callback) {
        let data = {}
        data.account = account
        data.password = password
        let params = _request._params(this.module, 'register', data);
        _request._post(params, function(response){
            if (response.code !== _request.success) {
                Message.info(response.msg);
                return;
            }

            //回调数据
            callback(response.data)
        });
    },

}


export default lib_register
